const state = {
    token: '',
    userInfo: {
      username: 'tom',
      mobile: '13233333333',
      roles: {
        menus: ['权限一', '权限二']
      }
    }
  }
  
  const mutations = {
    setToken(state,playload){
      state.token=playload
    }
  }
  const actions = {}
  
//   export default {
//     namespaced: true,
//     state, 
//     mutations, 
//     actions
//   }
export default{
    namespaced:true,
    state,
    mutations,
    actions
}